<!DOCTYPE BODY PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<title>LOGIN</title>
<style>
 
ul{
  list-style:none;
}

</style>
</HEAD>
<BODY>
<div id='login_form'>
<h2>DEEP SCRUM MANAGER</h2>
<h1> </h1>
<h1>LOGIN</h1>
<?php echo form_open('index.php/user/login'); ?>

<ul>

<li>
<label>Username</label>
<div>
<?php echo form_input(array('id' => 'username','name' => 'username'));?>
</div>
</li>
<li>
<label>Password</label>
<div>
<?php echo  form_password(array('id' => 'password','name' => 'password'));?>
</div>
</li>
<li>
<?php if($this->session->userdata('validation')==FALSE){
	echo validation_errors();
} 
?>
</li>

<li>
<?php echo form_submit(array('name' => 'submit'),'LOGIN'); ?>
</li>

</ul>

</div>
 <?php 
 if($this->session->flashdata('login_error')==TRUE){
 	echo 'Wrong username or password';
 }
  ?>
<?php echo form_close(); ?>
</BODY>
</HTML>